import request from "@/utils/request";

// 条件分页查询用户列表
export const ordersList = (params) => request.get("/api/orders/list.do", params);
// 添加用户
export const insertOrders = (obj)=>request.post("/api/orders/insert.do",obj,{
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})
// 删除用户
export const deleteOrders = (obj)=>request.post("/api/orders/deleted.do",obj,{
    headers:{
        "Content-Type":"application/x-www-form-urlencoded"}
})
//更新用户
export  const updateOrders = (obj)=>request.post("/api/orders/update.do",obj,{
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
})